package com.fz.mapper;

import com.fz.entity.Student;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by ZCY on 2018-01-25.
 */
public interface StudentMapper {
    @Select("select * from student")
    public List<Student> query();

    /*根据id进行删除*/
    @Delete("delete from student where id = #{id}")
    public int delById(int id);

}
